package com.xw.dto;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 9/14/21 5:23 PM
 * @Version: 1.0
 */
@Data
public class CustomMenu {


    String menu = "{\n" +
            "    \"button\": [\n" +
            "        {\n" +
            "            \"name\": \"关于我们\", \n" +
            "            \"sub_button\": [\n" +
            "                {\n" +
            "                    \"type\": \"click\", \n" +
            "                    \"name\": \"最新公告\", \n" +
            "                    \"key\": \"KEY_ZXGG\"\n" +
            "                }, \n" +
            "                {\n" +
            "                    \"type\": \"view\", \n" +
            "                    \"name\": \"地图导航\", \n" +
            "                    \"url\": \"https://m.amap.com/search/mapview/__p=B0HUYUTM99,34.04869479434357,116.86364829540254,%E6%9C%94%E8%A5%BF%E6%B9%96%E6%99%AF%E5%8C%BA(%E8%A5%BF%E9%97%A8),&src=app_share&callnative=1&callapp=0&userRelationToken=dcc6c2fa182911eca93800163e1bea641&poiid=B0HUYUTM99\"\n" +
            "                }, \n" +
            "                {\n" +
            "                    \"type\": \"view\", \n" +
            "                    \"name\": \"实时天气\", \n" +
            "                    \"url\": \"http://www.weather.com.cn/weather/101221201.shtml\"\n" +
            "                }, \n" +
            "                {\n" +
            "                    \"type\": \"view\", \n" +
            "                    \"name\": \"交通信息\", \n" +
            "                    \"url\": \"https://huaibei.8684.cn\"\n" +
            "                }\n" +
            "            ]\n" +
            "        }, \n" +
            "        {\n" +
            "            \"name\": \"乐玩景区\", \n" +
            "            \"type\": \"click\", \n" +
            "            \"key\": \"KEY_LWJQ\", \n" +
            "            \"sub_button\": [\n" +
            "                {\n" +
            "                    \"type\": \"click\", \n" +
            "                    \"name\": \"游记攻略\", \n" +
            "                    \"key\": \"KEY_LWJQ_YJGL\"\n" +
            "                }, \n" +
            "                {\n" +
            "                    \"type\": \"click\", \n" +
            "                    \"name\": \"最新活动\", \n" +
            "                    \"key\": \"KEY_LWJQ_ZXHD\"\n" +
            "                }\n" +
            "            ]\n" +
            "        }, \n" +
            "        {\n" +
            "            \"type\": \"click\", \n" +
            "            \"name\": \"在线预订\", \n" +
            "            \"key\": \"KEY_ZXYD\", \n" +
            "            \"sub_button\": [\n" +
            "                {\n" +
            "                    \"type\": \"click\", \n" +
            "                    \"name\": \"门票预订\", \n" +
            "                    \"url\": \"http://shuoxihu.0561cc.com/sxhyd/wx/onlineReserve\", \n" +
            "                    \"key\": \"KEY_ZXYD_MPYD\"\n" +
            "                }, \n" +
            "                {\n" +
            "                    \"type\": \"click\", \n" +
            "                    \"name\": \"联系我们\", \n" +
            "                    \"key\": \"KEY_ZXYD_LXWM\"\n" +
            "                }\n" +
            "            ]\n" +
            "        }\n" +
            "    ]\n" +
            "}";

}

/*

https://mp.weixin.qq.com/debug/cgi-bin/apiinfo?t=index&type=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95&form=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%E5%88%9B%E5%BB%BA%E6%8E%A5%E5%8F%A3%20/menu/creat
http://shuoxihu.0561cc.com/sxhyd/wx/createMenu
{
    "button": [
        {
            "name": "关于我们",
            "sub_button": [
                {
                    "type": "click",
                    "name": "最新公告",
                    "key": "KEY_ZXGG"
                },
                {
                    "type": "view",
                    "name": "地图导航",
                    "url": "https://m.amap.com/search/mapview/__p=B0HUYUTM99,34.04869479434357,116.86364829540254,%E6%9C%94%E8%A5%BF%E6%B9%96%E6%99%AF%E5%8C%BA(%E8%A5%BF%E9%97%A8),&src=app_share&callnative=1&callapp=0&userRelationToken=dcc6c2fa182911eca93800163e1bea641&poiid=B0HUYUTM99"
                },
                {
                    "type": "view",
                    "name": "实时天气",
                    "url": "http://www.weather.com.cn/weather/101221201.shtml"
                },
                {
                    "type": "view",
                    "name": "交通信息",
                    "url": "https://huaibei.8684.cn"
                }
            ]
        },
        {
            "name": "乐玩景区",
            "type": "click",
            "key": "KEY_LWJQ",
            "sub_button": [
                {
                    "type": "click",
                    "name": "游记攻略",
                    "key": "KEY_LWJQ_YJGL"
                },
                {
                    "type": "click",
                    "name": "最新活动",
                    "key": "KEY_LWJQ_ZXHD"
                }
            ]
        },
        {
            "type": "click",
            "name": "在线预订",
            "key": "KEY_ZXYD",
            "sub_button": [
                {
                    "type": "click",
                    "name": "门票预订",
                    "url": "http://shuoxihu.0561cc.com/sxhyd/wx/onlineReserve",
                    "key": "KEY_ZXYD_MPYD"
                },
                {
                    "type": "click",
                    "name": "联系我们",
                    "key": "KEY_ZXYD_LXWM"
                }
            ]
        }
    ]
}

 */